package com.yuezhi.consumer.config;

import com.yuezhi.consumer.constant.QueueConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class HelloWorldConfig {

    @Bean
    Queue queue() {
        return new Queue(QueueConstant.HELLO_QUEUE);
    }
}
